]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
weather: Mark conditions as significant
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Oct 2017 15:02:36 +0000 (17:02 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Oct 2017 16:12:26 +0000 (18:12 +0200)
Otherwise the passed phenomenon/qualifier are ignored and a fallback
string is used.

js/ui/dateMenu.js

index 4f46a0da54643250773d3301d6bfbaa859d4eef5..1d48fa8bd428398a2d685533a087f7b08298897d 100644 (file)
@@ -240,7 +240,9 @@ var WeatherSection = new Lang.Class({
 
         let [ok, phenomenon, qualifier] = info.get_value_conditions();
         if (ok)
-            return new GWeather.Conditions({ phenomenon, qualifier}).to_string_full(options);
+            return new GWeather.Conditions({ significant: true,
+                                             phenomenon,
+                                             qualifier }).to_string_full(options);
 
         let [, sky] = info.get_value_sky();
         return GWeather.Sky.to_string_full(sky, options);